how to enable usb on openwrt after upgrade version¶
you should learn it before this.
enable usb
opkg update opkg install ca-certificates coreutils-nohup fdisk e2fsprogs kmod-fs-ext4 kmod-usb-storage kmod-usb-storage-extrasthen, use fdisk and mkfs.ext4 to enable it.
maybe need a monitor script
cat /v2.sh #!/bin/sh v2=$(ps|grep v2ray|grep -v grep|awk '{print $1}') if [[ -z "$v2" ]] then cd /usb/v2ray_armv7 && nohup /usb/v2ray_armv7/v2ray -config /usb/v2ray_armv7/config.json & fiautomount
echo "mount /dev/sda1 /usb" >> /etc/rc.local crontab -l |(cat;echo "*/1 * * * * /v2.sh")| crontab -